/**
 * Created by zaranengap on 2017/11/01.
 */
import {combineReducers} from 'redux';
import {cr} from 'share/utils'
import {
  SET_CODING_RULE_OBJECT_ID,
  SET_EXPENSE_TYPE_SET_OF_BOOKS,
  SET_STANDARD_RULES_GROUP,
  SET_EXPENSE_TYPE_RULES,
  SET_ENABLE_DEP_COMPANY,
  SET_RESOURCE_KEY,
  SET_PAGE_FLAG
} from 'actions/setting'

export default combineReducers({
  expenseTypeSetOfBooks: cr({}, {
    [SET_EXPENSE_TYPE_SET_OF_BOOKS](state, {expenseTypeSetOfBooks}){return expenseTypeSetOfBooks}
  }),
  standardRulesGroup: cr({}, {
    [SET_STANDARD_RULES_GROUP](state, {standardRulesGroup}){return standardRulesGroup}
  }),
  expenseTypeRules: cr({}, {
    [SET_EXPENSE_TYPE_RULES](state, {expenseTypeRules}){return expenseTypeRules}
  }),
  enableDepCompany: cr({}, {
    [SET_ENABLE_DEP_COMPANY](state, {enableDepCompany}){return enableDepCompany}
  }),
  resourceKey: cr({}, {
    [SET_RESOURCE_KEY](state, {resourceKey}){return resourceKey}
  })
})
